
from pyecharts.charts import Bar
from pyecharts import options

sal = [5000, 3300, 2000, 4000]
city = ["北京", "南昌", "九江", "上海"]

bar = Bar()
bar.add_xaxis(city)
bar.add_yaxis("月薪/月", sal)

bar.set_global_opts()

bar.set_global_opts(title_opts=options.TitleOpts(title="各城市薪水"))
bar.render("barmin.html")
